package com.study.demo_exception.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @ClassName: HelloController
 * @Description:
 * @author: WS
 * @date 2020/12/11
 * @Version: 1.0
 **/
@Controller
public class HelloController {
    @GetMapping("/hello")
    public String sayHello(){
        int i=1/0;
        return "hello";
    }
}
